/* eslint-disable react/prop-types */
/* eslint-disable no-use-before-define */
import React, { Component } from 'react'
import bg from './back.jpg'

import useMouse from './withMouse'

class Com1 extends Component {
  render () {
    return (
      <div><img src={bg} style={{ top: this.props.y, left: this.props.x, position: 'absolute', width: 50 }} /></div>

    )
  }
}

export default useMouse(Com1)
